/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:ColDesc.java   2020-07-18 15:46 wanglijun
 */
package cn.datacare.orm.database;

/**
 * <p>
 * Title: 列定义
 * </p>
 * <p>
 * Description: 列定义
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-07-18 15:46
 */
public class ColDesc {
    /***
     * 列名
     */
    private String colName;
    /**
     * SQL数据类型
     */
    private int sqlType;

    private Integer size;

    private Integer digit;

    private String remark;

    private boolean isAuto = false;

    /**
     * 构造函数
     *
     * @param colName
     * @param sqlType
     * @param size
     * @param digit
     * @param remark
     */
    public ColDesc(String colName, int sqlType, Integer size, Integer digit, String remark) {
        this.colName = colName;
        this.sqlType = sqlType;
        this.size = size;
        this.digit = digit;
        this.remark = remark;
        this.isAuto = isAuto;
    }

    public String getColName() {
        return colName;
    }

    public void setColName(String colName) {
        this.colName = colName;
    }

    public int getSqlType() {
        return sqlType;
    }

    public void setSqlType(int sqlType) {
        this.sqlType = sqlType;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getDigit() {
        return digit;
    }

    public void setDigit(Integer digit) {
        this.digit = digit;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean isAuto() {
        return isAuto;
    }

    public void setAuto(boolean auto) {
        isAuto = auto;
    }
}
